<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>

<script type="text/javascript">



		function formatterCaoZuo(value,row,index){
			 return "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="+row.nAddress+" target='blank'>查看</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"; 
 
		}
		
		function formatterYouXianJi(value,row,index){
			if(value==0){
				return "通知";
			}if(value==1){
				return "重要通知";
			}
		}
		
		function formatterDate(value,row,index){
			if(value==''||null==value){
				return '';
			}
			var now = new Date(parseInt(value) * 1000);  
			var year=now.getYear()+1900; 
			var month=now.getMonth()+1; 
			var date=now.getDate(); 
			var hour=now.getHours(); 
			var minute=now.getMinutes();
			minute= (minute > 9) ? minute=minute : minute='0'+minute;
			//var second=now.getSeconds(); 
			return year+"-"+month+"-"+date+" "+hour+":"+minute; 
		}

		
</script>

<div style="padding:10px;">	
			
			<table class="easyui-datagrid" style="height:206px;"
			data-options="pagination:true,pageList: [5],singleSelect:true,collapsible:true,url:'${pageContext.request.contextPath}/page.everyone.noticeList.ashx'">
		<thead>
			<tr>
					<th data-options="width:70,field:'nPriority',formatter:formatterYouXianJi">优先级</th>
					<th data-options="width:260,field:'nTopic'">主题</th>
					<th data-options="width:50,field:'nSender'">发送人</th>
					<th data-options="width:100,field:'nSendDateTime',formatter:formatterDate">发送日期</th>
					<th data-options="width:50,field:'nId',formatter:formatterCaoZuo">操作</th>
				
			</tr>
		</thead>
	</table>
</div>